package com.zpy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zpy.mapper.UserRoleMapper;
import com.zpy.pojo.UserRole;
import com.zpy.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole>implements UserRoleService {
    @Autowired
    private UserRoleMapper userRoleMapper;
    @Override
    public boolean saveUserRole(Integer id) {
        return userRoleMapper.saveUserRole(id);
    }

    @Override
    public boolean saveReaderRole(Integer id) {
        return userRoleMapper.saveReaderRole(id);
    }
}
